<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>读过“{{$books->book_name}}”的夜读书成员</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/ucenter.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('books.partials.navtop')
@include('books.partials.nav')
<div id="yds_screen">
<div id="yds_content" class="clearfix">
  <div class="review">
   <h1>读过“{{$books->book_name}}”的夜读书成员</h1>
   <div class="rating_detail_wrap clearfix">
    <div class="rating_detail_star">
      @if($pf!=0 && $pingfeninfo->rencount>=10)
      <div class="rating_right">
      @if($pingfeninfo->fenshu >= 0 && $pingfeninfo->fenshu < 1)
          <div class="bigstar05"></div>
      @endif
      @if($pingfeninfo->fenshu >= 1 && $pingfeninfo->fenshu < 2)
          <div class="bigstar10"></div>
      @endif
      @if($pingfeninfo->fenshu >= 2 && $pingfeninfo->fenshu < 3)
          <div class="bigstar15"></div>
      @endif
      @if($pingfeninfo->fenshu >= 3 && $pingfeninfo->fenshu < 4)
          <div class="bigstar20"></div>
      @endif
      @if($pingfeninfo->fenshu >= 4 && $pingfeninfo->fenshu < 5)
          <div class="bigstar25"></div>
      @endif
      @if($pingfeninfo->fenshu >= 5 && $pingfeninfo->fenshu < 6)
          <div class="bigstar30"></div>
      @endif
      @if($pingfeninfo->fenshu >= 6 && $pingfeninfo->fenshu < 7)
          <div class="bigstar35"></div>
      @endif
      @if($pingfeninfo->fenshu >= 7 && $pingfeninfo->fenshu < 8)
          <div class="bigstar40"></div>
      @endif
      @if($pingfeninfo->fenshu >= 8 && $pingfeninfo->fenshu < 9)
          <div class="bigstar45"></div>
      @endif
      @if($pingfeninfo->fenshu >= 9 && $pingfeninfo->fenshu <= 10)
          <div class="bigstar50"></div>
      @endif      
      <strong class="rating_num">{{$pingfeninfo->fenshu}}</strong>      
      </div>
      @else
      @if(!empty($pingfeninfo))
      <div class="rating_sum">
          <span class="" style="font-size:14px">{{$pingfeninfo->rencount}}人评分</span>
      </div>
      @else
      <div class="rating_sum">
          <div class="bigstar00"></div>
      </div>
      @endif
      @endif
      @if($pf!=0)
      <span class="fleft">力荐</span> <div class="power" style="width: {{$pingfeninfo->star5*0.6}}px;"></div><span class="bfb">{{$pingfeninfo->star5}}%</span>
      <br/>
      <span class="fleft">推荐</span> <div class="power" style="width: {{$pingfeninfo->star4*0.6}}px;"></div><span class="bfb">{{$pingfeninfo->star4}}%</span>
      <br/>
      <span class="fleft">还行</span> <div class="power" style="width: {{$pingfeninfo->star3*0.6}}px;"></div><span class="bfb">{{$pingfeninfo->star3}}%</span>
      <br/>
      <span class="fleft">较差</span> <div class="power" style="width: {{$pingfeninfo->star2*0.6}}px;"></div><span class="bfb">{{$pingfeninfo->star2}}%</span>
      <br/>
      <span class="fleft">很差</span> <div class="power" style="width: {{$pingfeninfo->star1*0.6}}px;"></div><span class="bfb">{{$pingfeninfo->star4}}%</span>
      @else
      <span class="fleft">力荐</span> <div class="power" style="width:0px"></div><span class="bfb">0.0%</span>
      <br/>
      <span class="fleft">推荐</span> <div class="power" style="width:0px"></div><span class="bfb">0.0%</span>
      <br/>
      <span class="fleft">还行</span> <div class="power" style="width:0px"></div><span class="bfb">0.0%</span>
      <br/>
      <span class="fleft">较差</span> <div class="power" style="width:0px"></div><span class="bfb">0.0%</span>
      <br/>
      <span class="fleft">很差</span> <div class="power" style="width:0px"></div><span class="bfb">0.0%</span>
      @endif
    </div>
   </div>
   <div class="ubar clearfix">
    <div>
        <span class="read_bar now-bak"><a href="{{url('info')}}/{{$books->book_id}}/read">{{count($read)}}人读过</a></span>
        <span class="reading_bar"><a href="{{url('info')}}/{{$books->book_id}}/reading">{{count($reading)}}人在读</a></span>
        <span class="want_bar"><a href="{{url('info')}}/{{$books->book_id}}/want">{{count($want)}}人想读</a></span>
    </div>
   </div>
   @if(count($bookspingfens)!=0)
   @foreach($bookspingfens as $bookspingfen)
   <div id="read-tab" class="clearfix">
       <div class="ltx">
           <a class="aw-user-img aw-border-radius-5" href="{{url('u')}}/{{$bookspingfen->users->uid}}" title="{{ $bookspingfen->users->user_name }}">
           @if($bookspingfen->users->avatar_file!="")
           <img src="http://www.yedushu.com/topics/uploads/avatar/{{ $bookspingfen->users->avatar_file }}">
           @else
           <img src="http://www.yedushu.com/topics/static/common/avatar-mid-img.png">
           @endif
           </a>
       </div>
       <div class="rtx">
           <div class="">{{$bookspingfen->users->user_name}}</div>
           <div class=""><span>{{date('Y-m-d H:i',$bookspingfen->add_time)}}</span><span class="allstar{{$bookspingfen->rating}}0"></span></div>
           <div class="">{{$bookspingfen->memo}}</div>
       </div>
   </div>
   @endforeach
   @else
   <div class="noinfo">暂时没有信息。</div>
   @endif
  </div>
  <div class="aside">
  <div class="indent">
    <p>夜读书评分会员信息</p>
  </div>  
  <div class="pl2"><a href="{{url('info')}}/{{$books->book_id}}">{{$books->book_name}}</a></div>
  <div class="rebook">
    <a href="{{url('info')}}/{{$books->book_id}}"><img src="{{url($books->bimg)}}"></img></a>
    <br/>
    @if($books->zuozhe!="") <span class="p1">作者:{{ $books->zuozhe }}</span><br/> @endif
    @if($books->yuanzuoming!="") <span class="p1">原作名:{{ $books->yuanzuoming }}</span><br/> @endif
    @if($books->isbn!="") <span class="p1">isbn:{{ $books->isbn }}</span><br/> @endif
    @if($books->book_name!="") <span class="p1">书名:{{ $books->book_name }}</span><br/> @endif
    @if($books->yeshu!="") <span class="p1">页数:{{ $books->yeshu }}</span><br/> @endif
    @if($books->yizhe!="") <span class="p1">译者:{{ $books->yizhe }}</span><br/> @endif
    @if($books->dingjia!="") <span class="p1">定价:{{ $books->dingjia }}</span><br/> @endif
    @if($books->chubanshe!="") <span class="p1">出版社:{{ $books->chubanshe }}</span><br/> @endif
    @if($books->zhuangzhen!="") <span class="p1">装帧:{{ $books->zhuangzhen }}</span><br/> @endif
    @if($books->chubannian!="") <span class="p1">出版年:{{ $books->chubannian }}</span><br/> @endif
  </div>
  </div>
</div>
</div>
@include('books.partials.footer')
</body>
</html>
